﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace EcoSystem
{
    /// <summary>
    /// 配置管理模块
    /// </summary>
    public interface IConfigModelAppService : IApplicationService
    {
        /// <summary>
        /// 获取指定系统指定分类下的配置数据并返回为指定的强类型数据模型
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="moduleCode"></param>
        /// <param name="category"></param>
        /// <returns></returns>
        Task<T> GetConfigAsync<T>(string moduleCode, string category) where T : new();

        /// <summary>
        ///  获取指定系统指定分类下的配置数据并返回为数据字典
        /// </summary>
        /// <param name="moduleCode"></param>
        /// <param name="category"></param>
        /// <returns></returns>
        Task<Dictionary<string, object>> GetAsync(string moduleCode, string category);
    }
}
